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.ok != null) {
    json[r'ok'] = this.ok;
  } else {
    json[r'ok'] = null;
  }
  if (this.output != null) {
    json[r'output'] = this.output;
  } else {
    json[r'output'] = null;
  }
  return json;
}