fromJson static method

MPLabelGraphic? fromJson(
  1. dynamic json
)

Attempts to parse an instance of MPLabelGraphic from a JSON object.

Implementation

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