Visibility.fromJson constructor

Visibility.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Visibility.fromJson(Map<String, Object?> json) {
  return Visibility(
    identifier: json[r'identifier'] as String?,
    type: json[r'type'] != null
        ? VisibilityType.fromValue(json[r'type']! as String)
        : null,
    value: json[r'value'] as String?,
  );
}