fromJson static method
Returns a new Authorization instance and imports
Implementation
// ignore: prefer_constructors_over_static_methods
static Authorization fromJson(dynamic value) {
final json = value.cast<String, dynamic>();
return Authorization(
status: AuthorizationStatusEnum.fromJson(json[r'status']),
description: mapValueOfType<String>(json, r'description'),
createdAt: mapDateTime(json, r'createdAt', ''),
updatedAt: mapDateTime(json, r'updatedAt', ''),
orgID: mapValueOfType<String>(json, r'orgID'),
permissions: Permission.listFromJson(json[r'permissions']),
id: mapValueOfType<String>(json, r'id'),
token: mapValueOfType<String>(json, r'token'),
userID: mapValueOfType<String>(json, r'userID'),
user: mapValueOfType<String>(json, r'user'),
org: mapValueOfType<String>(json, r'org'),
links: json[r'links'] == null
? null
: AuthorizationAllOfLinks.fromJson(json[r'links']),
);
}