Map<String, dynamic> toJson() { return { 'coin_identifier': coinIdentifier.toJson(), 'coin_action': coinAction, }..removeWhere((key, value) => value == null); }