toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': operationId,
    'status': status,
    'created_at': createdAt.millisecondsSinceEpoch,
    'updated_at': updatedAt.millisecondsSinceEpoch,
    'reference': reference,
    'amount': amount,
    'account_name': accountName,
    'account_id': accountId,
    'bank_address': bankInfo.toMap(),
  };
}