toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (merchantAccountId != null) 'merchantAccountId': merchantAccountId!,
      if (name != null) 'name': name!,
      if (quantity != null) 'quantity': quantity!,
      if (value != null) 'value': value!,
    };