Files
salvadordeveloper b279b64c6e Initial commit
2021-05-27 15:59:34 -06:00

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);
}