toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type.toJson(),
    if (value != null) 'value': value!.toJson(),
    if (attribute != null) 'attribute': attribute,
    if (attributeValue != null) 'attributeValue': attributeValue!.toJson(),
    if (superseded != null) 'superseded': superseded,
    if (nativeSource != null) 'nativeSource': nativeSource!.toJson(),
    if (nativeSourceValue != null)
      'nativeSourceValue': nativeSourceValue!.toJson(),
    if (invalid != null) 'invalid': invalid,
    if (invalidReason != null) 'invalidReason': invalidReason,
  };
}