Page<T>.fromJson constructor
Page<T>.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Page.fromJson(Map<String, dynamic> json) => Page<T>()
..rateLimitLimit = convertInt(json['rateLimitLimit'])
..rateLimitRemaining = convertInt(json['rateLimitRemaining'])
..rateLimitReset = convertInt(json['rateLimitReset'])
..records = json["_embedded"]['records'] != null
? List<T>.from(
json["_embedded"]['records'].map((e) => ResponseConverter.fromJson<T>(e) as T))
: null
..links = json['_links'] == null ? null : PageLinks.fromJson(json['_links'])
..setType(TypeToken<Page<T>>());