ListMeta.fromJson constructor

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

Creates a ListMeta from JSON data.

Implementation

factory ListMeta.fromJson(Map<String, dynamic> json) {
  final tempContinueJson = json['continue'];
  final tempRemainingItemCountJson = json['remainingItemCount'];
  final tempResourceVersionJson = json['resourceVersion'];
  final tempSelfLinkJson = json['selfLink'];

  final String? tempContinue = tempContinueJson;
  final int? tempRemainingItemCount = tempRemainingItemCountJson;
  final String? tempResourceVersion = tempResourceVersionJson;
  final String? tempSelfLink = tempSelfLinkJson;

  return ListMeta(
    $continue: tempContinue,
    remainingItemCount: tempRemainingItemCount,
    resourceVersion: tempResourceVersion,
    selfLink: tempSelfLink,
  );
}