toMap method

Map<String, dynamic> toMap()

Converts the domain to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    'name': name,
    'version': version,
    'chainId': chainId,
    'verifyingContract': verifyingContract,
    'salt': salt == null ? null : base64Encode(salt!),
  };
}