toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final hardLimit = this.hardLimit;
  final name = this.name;
  final softLimit = this.softLimit;
  return {
    'hardLimit': hardLimit,
    'name': name.toValue(),
    'softLimit': softLimit,
  };
}