fromJson static method

MPUserRole? fromJson(
  1. dynamic json
)

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

Implementation

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