fromJson static method

InlineObject5 fromJson(
  1. dynamic value
)

Returns a new InlineObject5 instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static InlineObject5 fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return InlineObject5(
      roleId: mapValueOfType<String>(json, r'roleId'),
      userId: mapValueOfType<String>(json, r'userId'),
      userName: mapValueOfType<String>(json, r'userName'),
      memberType: InlineObject5MemberTypeEnum.fromJson(json[r'memberType']),
    );
  }
  return null;
}