Configurations.fromJson constructor
Configurations.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Configurations.fromJson(Map<String, dynamic> json) {
return Configurations(
current: json['current'] != null
? ConfigurationId.fromJson(json['current'] as Map<String, dynamic>)
: null,
history: (json['history'] as List?)
?.whereNotNull()
.map((e) => ConfigurationId.fromJson(e as Map<String, dynamic>))
.toList(),
pending: json['pending'] != null
? ConfigurationId.fromJson(json['pending'] as Map<String, dynamic>)
: null,
);
}