FetchPageResult.fromJson constructor

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

Implementation

factory FetchPageResult.fromJson(Map<String, dynamic> json) {
  return FetchPageResult(
    consumedIOs: json['ConsumedIOs'] != null
        ? IOUsage.fromJson(json['ConsumedIOs'] as Map<String, dynamic>)
        : null,
    page: json['Page'] != null
        ? Page.fromJson(json['Page'] as Map<String, dynamic>)
        : null,
    timingInformation: json['TimingInformation'] != null
        ? TimingInformation.fromJson(
            json['TimingInformation'] as Map<String, dynamic>)
        : null,
  );
}