fromJson static method

SpaceCreate fromJson(
  1. dynamic value
)

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

Implementation

// ignore: prefer_constructors_over_static_methods
static SpaceCreate fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return SpaceCreate(
      levelId: mapValueOfType<int>(json, r'LevelId'),
      assetModelId: mapValueOfType<int>(json, r'AssetModelId'),
      entityId: mapValueOfType<int>(json, r'EntityId'),
      externalIdentifier: mapValueOfType<String>(json, r'ExternalIdentifier'),
      name: mapValueOfType<String>(json, r'Name'),
      description: mapValueOfType<String>(json, r'Description'),
      externalObjectType: mapValueOfType<String>(json, r'ExternalObjectType'),
    );
  }
  return null;
}