SpaceDescription.fromJson constructor

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

Implementation

factory SpaceDescription.fromJson(Map<String, Object?> json) {
  return SpaceDescription(
    value: json[r'value'] as String? ?? '',
    representation: SpaceDescriptionRepresentation.fromValue(
        json[r'representation'] as String? ?? ''),
    embeddedContent: (json[r'embeddedContent'] as List<Object?>?)
            ?.map((i) => i as Map<String, Object?>? ?? {})
            .toList() ??
        [],
  );
}