toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'caps'] = this.caps;
    json[r'commands'] = this.commands;
  if (this.connectedAt != null) {
    json[r'connectedAt'] = this.connectedAt;
  } else {
    json[r'connectedAt'] = null;
  }
  if (this.displayName != null) {
    json[r'displayName'] = this.displayName;
  } else {
    json[r'displayName'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.platform != null) {
    json[r'platform'] = this.platform;
  } else {
    json[r'platform'] = null;
  }
  if (this.version != null) {
    json[r'version'] = this.version;
  } else {
    json[r'version'] = null;
  }
  return json;
}