toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
  'txnId': txnId,
  if (txnDate != null) 'txnDate': txnDate,
  if (zoneId != null) 'zoneId': zoneId,
  if (type != null) 'type': type,
  if (info != null) 'info': info!.toMap(),
  if (subject != null) 'subject': subject!.toMap(),
  if (counterparty != null) 'counterparty': counterparty!.toMap(),
  if (props != null) 'props': props,
  if (travelRule != null) 'travelRule': travelRule!.toMap(),
  if (includeCryptoScreening != null)
    'includeCryptoScreening': includeCryptoScreening,
};