Page<T>.fromJson constructor

Page<T>.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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