toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountId != null) 'accountId': accountId!,
      if (action != null) 'action': action!,
      if (changeTime != null)
        'changeTime': changeTime!.toUtc().toIso8601String(),
      if (fieldName != null) 'fieldName': fieldName!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (newValue != null) 'newValue': newValue!,
      if (objectId != null) 'objectId': objectId!,
      if (objectType != null) 'objectType': objectType!,
      if (oldValue != null) 'oldValue': oldValue!,
      if (subaccountId != null) 'subaccountId': subaccountId!,
      if (transactionId != null) 'transactionId': transactionId!,
      if (userProfileId != null) 'userProfileId': userProfileId!,
      if (userProfileName != null) 'userProfileName': userProfileName!,
    };