Resource.fromJson constructor

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

Implementation

factory Resource.fromJson(Map<String, Object?> json) => Resource(
      type: json["type"] == null ? null : json["type"] as String,
      id: json["id"] == null ? null : json["id"] as String,
      name: json["name"] == null ? null : json["name"] as String,
    );