fromJson static method

DocumentEdit fromJson(
  1. dynamic value
)

Returns a new DocumentEdit instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static DocumentEdit fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return DocumentEdit(
      url: mapValueOfType<String>(json, r'Url'),
      location: mapValueOfType<String>(json, r'Location'),
      itemReference: mapValueOfType<String>(json, r'ItemReference'),
      scope: mapValueOfType<String>(json, r'Scope'),
      revision: mapValueOfType<String>(json, r'Revision'),
      purpose: mapValueOfType<String>(json, r'Purpose'),
      intendedUse: mapValueOfType<String>(json, r'IntendedUse'),
      name: mapValueOfType<String>(json, r'Name'),
      description: mapValueOfType<String>(json, r'Description'),
      externalObjectType: mapValueOfType<String>(json, r'ExternalObjectType'),
    );
  }
  return null;
}