factory Limits.fromJson(Map<String, Object?> json) => Limits( amount: AmountRange.fromJson( (json['amount'] as Map).cast<String, Object?>(), ), );