fromJson static method

MPBuilding? fromJson(
  1. dynamic json
)

Attempts to build a MPBuilding from a JSON object, this method will decode the object if needed

Implementation

static MPBuilding? fromJson(json) => json != null && json != "null"
    ? MPBuilding._fromJson(json is String ? jsonDecode(json) : json)
    : null;