toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "operations": operations.map((e) => e.toJson()).toList(),
      "signers": signers?.map((e) => e.toString()).toList(),
      "account_identifier_signers":
          account_identifier_signers?.map((e) => e.toJson()).toList(),
      "metadata": metadata
    }..removeWhere(
        (dynamic key, dynamic value) => key == null || value == null);