toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var number = this.number;
  var message = this.message;

  final json = <String, Object?>{};
  json[r'number'] = number;
  if (message != null) {
    json[r'message'] = message;
  }
  return json;
}