toJson method

Map<String, dynamic> toJson()

Implementation

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