ApiWarning.fromJson constructor

ApiWarning.fromJson(
  1. Map _json
)

Implementation

ApiWarning.fromJson(core.Map _json)
    : this(
        code: _json.containsKey('code') ? _json['code'] as core.String : null,
        message: _json.containsKey('message')
            ? _json['message'] as core.String
            : null,
        region: _json.containsKey('region')
            ? _json['region'] as core.String
            : null,
      );