toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final commitment = this.commitment;
  final renewalType = this.renewalType;
  final reservedSlots = this.reservedSlots;
  return {
    'commitment': commitment.toValue(),
    'renewalType': renewalType.toValue(),
    'reservedSlots': reservedSlots,
  };
}