toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var array = this.array;
  var bigDecimal = this.bigDecimal;
  var bigInteger = this.bigInteger;
  var bigIntegerValue = this.bigIntegerValue;
  var binary = this.binary;
  var binaryValue = this.binaryValue;
  var boolean = this.boolean;
  var booleanValue = this.booleanValue;
  var containerNode = this.containerNode;
  var decimalValue = this.decimalValue;
  var double$ = this.double$;
  var doubleValue = this.doubleValue;
  var elements = this.elements;
  var fieldNames = this.fieldNames;
  var fields = this.fields;
  var floatingPointNumber = this.floatingPointNumber;
  var int$ = this.int$;
  var intValue = this.intValue;
  var integralNumber = this.integralNumber;
  var long = this.long;
  var longValue = this.longValue;
  var missingNode = this.missingNode;
  var null$ = this.null$;
  var number = this.number;
  var numberType = this.numberType;
  var numberValue = this.numberValue;
  var object = this.object;
  var pojo = this.pojo;
  var textValue = this.textValue;
  var textual = this.textual;
  var valueAsBoolean = this.valueAsBoolean;
  var valueAsDouble = this.valueAsDouble;
  var valueAsInt = this.valueAsInt;
  var valueAsLong = this.valueAsLong;
  var valueAsText = this.valueAsText;
  var valueNode = this.valueNode;

  final json = <String, Object?>{};
  json[r'array'] = array;
  json[r'bigDecimal'] = bigDecimal;
  json[r'bigInteger'] = bigInteger;
  if (bigIntegerValue != null) {
    json[r'bigIntegerValue'] = bigIntegerValue;
  }
  json[r'binary'] = binary;
  json[r'binaryValue'] = binaryValue;
  json[r'boolean'] = boolean;
  json[r'booleanValue'] = booleanValue;
  json[r'containerNode'] = containerNode;
  if (decimalValue != null) {
    json[r'decimalValue'] = decimalValue;
  }
  json[r'double'] = double$;
  if (doubleValue != null) {
    json[r'doubleValue'] = doubleValue;
  }
  if (elements != null) {
    json[r'elements'] = elements;
  }
  if (fieldNames != null) {
    json[r'fieldNames'] = fieldNames;
  }
  if (fields != null) {
    json[r'fields'] = fields;
  }
  json[r'floatingPointNumber'] = floatingPointNumber;
  json[r'int'] = int$;
  if (intValue != null) {
    json[r'intValue'] = intValue;
  }
  json[r'integralNumber'] = integralNumber;
  json[r'long'] = long;
  if (longValue != null) {
    json[r'longValue'] = longValue;
  }
  json[r'missingNode'] = missingNode;
  json[r'null'] = null$;
  json[r'number'] = number;
  if (numberType != null) {
    json[r'numberType'] = numberType.value;
  }
  if (numberValue != null) {
    json[r'numberValue'] = numberValue;
  }
  json[r'object'] = object;
  json[r'pojo'] = pojo;
  if (textValue != null) {
    json[r'textValue'] = textValue;
  }
  json[r'textual'] = textual;
  json[r'valueAsBoolean'] = valueAsBoolean;
  if (valueAsDouble != null) {
    json[r'valueAsDouble'] = valueAsDouble;
  }
  if (valueAsInt != null) {
    json[r'valueAsInt'] = valueAsInt;
  }
  if (valueAsLong != null) {
    json[r'valueAsLong'] = valueAsLong;
  }
  if (valueAsText != null) {
    json[r'valueAsText'] = valueAsText;
  }
  json[r'valueNode'] = valueNode;
  return json;
}