toJson method
Implementation
Map<String, dynamic> toJson() {
final blackoutSlateImage = this.blackoutSlateImage;
final networkEndBlackout = this.networkEndBlackout;
final networkEndBlackoutImage = this.networkEndBlackoutImage;
final networkId = this.networkId;
final state = this.state;
return {
if (blackoutSlateImage != null) 'blackoutSlateImage': blackoutSlateImage,
if (networkEndBlackout != null)
'networkEndBlackout': networkEndBlackout.toValue(),
if (networkEndBlackoutImage != null)
'networkEndBlackoutImage': networkEndBlackoutImage,
if (networkId != null) 'networkId': networkId,
if (state != null) 'state': state.toValue(),
};
}