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