SpaceWatch.fromJson constructor
Implementation
factory SpaceWatch.fromJson(Map<String, Object?> json) {
return SpaceWatch(
type: json[r'type'] as String? ?? '',
watcher: WatchUser.fromJson(
json[r'watcher'] as Map<String, Object?>? ?? const {}),
spaceKey: json[r'spaceKey'] as String?,
labelName: json[r'labelName'] as String?,
prefix: json[r'prefix'] as String?,
);
}