Page.fromJson constructor

Page.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Page.fromJson(Map<String, Object?> json) => Page(
      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,
      keys: (json["keys"] as List)
          .map(
            (item) =>
                SecretKey.fromJson((item as Map).cast<String, Object?>()),
          )
          .toList(),
    );