toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.error != null) {
    json[r'error'] = this.error;
  } else {
    json[r'error'] = null;
  }
  if (this.message != null) {
    json[r'message'] = this.message;
  } else {
    json[r'message'] = null;
  }
  if (this.ok != null) {
    json[r'ok'] = this.ok;
  } else {
    json[r'ok'] = null;
  }
  if (this.sent != null) {
    json[r'sent'] = this.sent;
  } else {
    json[r'sent'] = null;
  }
  return json;
}