SpacePropertyUpdate.fromJson constructor

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

Implementation

factory SpacePropertyUpdate.fromJson(Map<String, Object?> json) {
  return SpacePropertyUpdate(
    key: json[r'key'] as String?,
    value: json[r'value'],
    version: Version.fromJson(
        json[r'version'] as Map<String, Object?>? ?? const {}),
    space: json[r'space'] != null
        ? SpacePropertyUpdateSpace.fromJson(
            json[r'space']! as Map<String, Object?>)
        : null,
  );
}