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,
  );
}