fromJson static method
Attempts to build a MPCategory from a JSON object, this method will decode the object if needed
Implementation
static MPCategory? fromJson(json) => json != null && json != "null"
? MPCategory._fromJson(json is String ? jsonDecode(json) : json)
: null;