StatusMessage.fromJson constructor Null safety

StatusMessage.fromJson(
  1. Map _json
)

Implementation

StatusMessage.fromJson(core.Map _json)
    : this(
        description: _json.containsKey('description')
            ? FormatMessage.fromJson(
                _json['description'] as core.Map<core.String, core.dynamic>)
            : null,
        isError: _json.containsKey('isError')
            ? _json['isError'] as core.bool
            : null,
        refersTo: _json.containsKey('refersTo')
            ? _json['refersTo'] as core.String
            : null,
      );