GuestAttributesEntry.fromJson constructor

GuestAttributesEntry.fromJson(
  1. Object? j
)

Implementation

factory GuestAttributesEntry.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GuestAttributesEntry(
    key: switch (json['key']) {
      null => null,
      Object $1 => decodeString($1),
    },
    namespace: switch (json['namespace']) {
      null => null,
      Object $1 => decodeString($1),
    },
    value: switch (json['value']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}