ResourceKey.fromJson constructor

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

Implementation

factory ResourceKey.fromJson(Map<String, dynamic> json) {
  return ResourceKey(
    resourceId: json['resourceId'] as String,
    resourceType: (json['resourceType'] as String).toResourceType(),
  );
}