toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (type != null) {
    json[r'type'] = type;
  }
  if (booleanValue != null) {
    json[r'booleanValue'] = booleanValue;
  }
  if (integerValue != null) {
    json[r'integerValue'] = integerValue;
  }
  if (doubleValue != null) {
    json[r'doubleValue'] = doubleValue;
  }
  if (stringValue != null) {
    json[r'stringValue'] = stringValue;
  }
  if (dateValue != null) {
    json[r'dateValue'] = dateValue!.toUtc().toIso8601String();
  }
  if (encryptedSelf != null) {
    json[r'encryptedSelf'] = encryptedSelf;
  }
  return json;
}