toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (statusCode != null) {
    _json[r'status_code'] = statusCode;
  }
  if (id != null) {
    _json[r'id'] = id;
  }
  if (message != null) {
    _json[r'message'] = message;
  }
  if (requestId != null) {
    _json[r'request_id'] = requestId;
  }
  return _json;
}