merge branches
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// ignore_for_file: invalid_annotation_target
|
||||
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'address.freezed.dart';
|
||||
part 'address.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class Address with _$Address {
|
||||
const factory Address({
|
||||
required String? street,
|
||||
required String? city,
|
||||
required String? state,
|
||||
@JsonKey(name: 'postal_code') required String? postalCode,
|
||||
required String? country,
|
||||
@JsonKey(name: 'address_type') required String? addressType,
|
||||
@JsonKey(name: 'is_default') required bool? isDefault,
|
||||
}) = _Address;
|
||||
|
||||
factory Address.fromJson(Map<String, Object?> json) =>
|
||||
_$AddressFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user