BlackoutSlate.fromJson constructor
BlackoutSlate.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BlackoutSlate.fromJson(Map<String, dynamic> json) {
return BlackoutSlate(
blackoutSlateImage: json['blackoutSlateImage'] != null
? InputLocation.fromJson(
json['blackoutSlateImage'] as Map<String, dynamic>)
: null,
networkEndBlackout: (json['networkEndBlackout'] as String?)
?.toBlackoutSlateNetworkEndBlackout(),
networkEndBlackoutImage: json['networkEndBlackoutImage'] != null
? InputLocation.fromJson(
json['networkEndBlackoutImage'] as Map<String, dynamic>)
: null,
networkId: json['networkId'] as String?,
state: (json['state'] as String?)?.toBlackoutSlateState(),
);
}