fromJson static method

Resource fromJson(
  1. dynamic value
)

Returns a new Resource instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static Resource fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return Resource(
    type: ResourceTypeEnum.fromJson(json[r'type']),
    id: mapValueOfType<String>(json, r'id'),
    name: mapValueOfType<String>(json, r'name'),
    orgID: mapValueOfType<String>(json, r'orgID'),
    org: mapValueOfType<String>(json, r'org'),
  );
}