UsagePage.fromJson constructor
Implementation
factory UsagePage.fromJson(Map<String, Object?> json) => UsagePage(
number: (json["number"] as num).toInt(),
size: (json["size"] as num).toInt(),
count: (json["count"] as num).toInt(),
total: (json["total"] as num).toInt(),
hasMore: json["has_more"] as bool,
rows: (json["rows"] as List)
.map(
(item) => UsageRow.fromJson(
(item as Map).cast<String, Object?>(),
),
)
.toList(),
);