fromJson static method

EntityEdit fromJson(
  1. dynamic value
)

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

Implementation

// ignore: prefer_constructors_over_static_methods
static EntityEdit fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return EntityEdit(
      name: mapValueOfType<String>(json, r'Name'),
      description: mapValueOfType<String>(json, r'Description'),
      externalObjectType: mapValueOfType<String>(json, r'ExternalObjectType'),
    );
  }
  return null;
}