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