mirror of
https://github.com/salvadordeveloper/flutter-crypto-app.git
synced 2025-08-06 16:20:07 +08:00
16 lines
371 B
Dart
16 lines
371 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'allowance.freezed.dart';
|
|
part 'allowance.g.dart';
|
|
|
|
@freezed
|
|
abstract class Allowance with _$Allowance {
|
|
const factory Allowance({
|
|
required double cost,
|
|
required double remaining,
|
|
}) = _Allowance;
|
|
|
|
factory Allowance.fromJson(Map<String, dynamic> json) =>
|
|
_$AllowanceFromJson(json);
|
|
}
|