toJson method

Map<String, dynamic> toJson()

Implementation

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