GenOption.fromJson constructor
GenOption.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GenOption.fromJson(Map<String, dynamic> json) {
final injectPackages = json['inject_packages'];
final preActorCall = json['pre_actor_call'];
final postActorCall = json['post_actor_call'];
return GenOption(
freezed: json['freezed'] ?? false,
equal: json['equal'] ?? true,
copyWith: json['copy_with'] ?? true,
service: json['service'] ?? false,
preActorCall: preActorCall,
postActorCall: postActorCall,
injectPackages: injectPackages is List ? injectPackages.cast() : null,
makeCollectionsUnmodifiable:
json['make_collections_unmodifiable'] ?? true,
);
}