AccessReason.fromJson constructor Null safety

AccessReason.fromJson(
  1. Map _json
)

Implementation

AccessReason.fromJson(core.Map _json)
    : this(
        detail: _json.containsKey('detail')
            ? _json['detail'] as core.String
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );