Resource.fromJson constructor

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

Implementation

factory Resource.fromJson(Map<String, dynamic> json) {
  return Resource(
    id: json['Id'] as String,
    name: json['Name'] as String,
    resourceDataContainer: ResourceDataContainer.fromJson(
        json['ResourceDataContainer'] as Map<String, dynamic>),
  );
}