fromJson static method

MPMapStyle? fromJson(
  1. dynamic json
)

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

Implementation

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