SpacePropertyCreate.fromJson constructor

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

Implementation

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