toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.short != null) {
    json[r'short'] = this.short;
  } else {
    json[r'short'] = null;
  }
  if (this.char != null) {
    json[r'char'] = this.char;
  } else {
    json[r'char'] = null;
  }
  if (this.int_ != null) {
    json[r'int'] = this.int_;
  } else {
    json[r'int'] = null;
  }
  if (this.long != null) {
    json[r'long'] = this.long;
  } else {
    json[r'long'] = null;
  }
  if (this.float != null) {
    json[r'float'] = this.float;
  } else {
    json[r'float'] = null;
  }
  if (this.double_ != null) {
    json[r'double'] = this.double_;
  } else {
    json[r'double'] = null;
  }
  if (this.direct != null) {
    json[r'direct'] = this.direct;
  } else {
    json[r'direct'] = null;
  }
  if (this.readOnly != null) {
    json[r'readOnly'] = this.readOnly;
  } else {
    json[r'readOnly'] = null;
  }
  return json;
}