@@ -18,6 +18,7 @@ final collectionFull = HttpResponse(200,
1818 'next' : 'http://example.com/articles?page[offset]=2' ,
1919 'last' : 'http://example.com/articles?page[offset]=10'
2020 },
21+ 'meta' : {'hello' : 'world' },
2122 'data' : [
2223 {
2324 'type' : 'articles' ,
@@ -85,6 +86,7 @@ final collectionFull = HttpResponse(200,
8586final primaryResource = HttpResponse (200 ,
8687 body: jsonEncode ({
8788 'links' : {'self' : 'http://example.com/articles/1' },
89+ 'meta' : {'hello' : 'world' },
8890 'data' : {
8991 'type' : 'articles' ,
9092 'id' : '1' ,
@@ -134,6 +136,7 @@ final primaryResource = HttpResponse(200,
134136final relatedResourceNull = HttpResponse (200 ,
135137 body: jsonEncode ({
136138 'links' : {'self' : 'http://example.com/articles/1/author' },
139+ 'meta' : {'hello' : 'world' },
137140 'data' : null
138141 }))
139142 ..headers.addAll ({'Content-Type' : mediaType});
@@ -143,6 +146,7 @@ final one = HttpResponse(200,
143146 'self' : '/articles/1/relationships/author' ,
144147 'related' : '/articles/1/author'
145148 },
149+ 'meta' : {'hello' : 'world' },
146150 'data' : {'type' : 'people' , 'id' : '12' },
147151 'included' : [
148152 {
@@ -187,6 +191,7 @@ final oneEmpty = HttpResponse(200,
187191 'self' : '/articles/1/relationships/author' ,
188192 'related' : '/articles/1/author'
189193 },
194+ 'meta' : {'hello' : 'world' },
190195 'data' : null ,
191196 'included' : [
192197 {
@@ -231,6 +236,7 @@ final many = HttpResponse(200,
231236 'self' : '/articles/1/relationships/tags' ,
232237 'related' : '/articles/1/tags'
233238 },
239+ 'meta' : {'hello' : 'world' },
234240 'data' : [
235241 {'type' : 'tags' , 'id' : '12' }
236242 ]
@@ -241,6 +247,7 @@ final noContent = HttpResponse(204);
241247
242248final error422 = HttpResponse (422 ,
243249 body: jsonEncode ({
250+ 'meta' : {'hello' : 'world' },
244251 'errors' : [
245252 {
246253 'status' : '422' ,
0 commit comments