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