fromJson static method

AuthorizationAllOf fromJson(
  1. dynamic value
)

Returns a new AuthorizationAllOf instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static AuthorizationAllOf fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return AuthorizationAllOf(
    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']),
  );
}