fromJson static method

Footprint fromJson(
  1. dynamic value
)

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

Implementation

// ignore: prefer_constructors_over_static_methods
static Footprint fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return Footprint(
      assetModelId: mapValueOfType<int>(json, r'AssetModelId'),
      entityId: mapValueOfType<int>(json, r'EntityId'),
      geometryDb: mapValueOfType<String>(json, r'GeometryDb'),
      minZ: mapValueOfType<double>(json, r'MinZ'),
      maxZ: mapValueOfType<double>(json, r'MaxZ'),
    );
  }
  return null;
}