fromJson static method
Returns a new ResourceMember instance and imports
Implementation
// ignore: prefer_constructors_over_static_methods
static ResourceMember fromJson(dynamic value) {
final json = value.cast<String, dynamic>();
return ResourceMember(
id: mapValueOfType<String>(json, r'id'),
oauthID: mapValueOfType<String>(json, r'oauthID'),
name: mapValueOfType<String>(json, r'name'),
status: ResourceMemberStatusEnum.fromJson(json[r'status']),
links: json[r'links'] == null
? null
: UserResponseLinks.fromJson(json[r'links']),
role: ResourceMemberRoleEnum.fromJson(json[r'role']),
);
}