parseAmount static method
Parse or nullify amount data
@param amount @return
Implementation
static String? parseAmount(double? amount) {
if (amount == null) {
return null;
}
if (amount > 0) {
return amount.toString();
}
return null;
}