toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "send_whitelist":
          send_whitelist.map((e) => e.map((f) => f).toList()).toList(),
      "minting_account": minting_account,
      "transaction_window":
          transaction_window != null ? [transaction_window?.toJson()] : [],
      "max_message_size_bytes":
          max_message_size_bytes != null ? [max_message_size_bytes] : [],
      "archive_options":
          archive_options != null ? [archive_options?.toJson()] : [],
      "initial_values": initial_values
          .map((e) =>
              e.map((f) => f is String ? f : (f as ICPTs).toJson()).toList())
          .toList()
    }..removeWhere(
        (dynamic key, dynamic value) => key == null || value == null);