factory AmountRange.fromJson(Map<String, Object?> json) => AmountRange( min: json['min'] as int, max: json['max'] as int, );