toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final visibilityState = this.visibilityState;
  return {
    if (visibilityState != null) 'VisibilityState': visibilityState.toValue(),
  };
}