toMap method
Converts to a map value
Implementation
@override
Map<String, dynamic> toMap() {
return <String, dynamic>{
'Id': id,
'LineNum': lineNum,
'Description': description,
'Amount': amount,
'DetailType': type.toJsonString(),
'ItemBasedExpenseLineDetail': itemBasedExpenseLineDetail?.toMap(),
'LinkedTxn': linkedTxn?.map((x) => x.toMap()).toList(),
};
}