toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (amount != null) 'amount': amount!,
      if (description != null) 'description': description!,
      if (expectedUnitsPerYear != null)
        'expectedUnitsPerYear': expectedUnitsPerYear!,
      if (range != null) 'range': range!,
      if (type != null) 'type': type!,
      if (unit != null) 'unit': unit!,
    };