GuestAttributes.fromJson constructor

GuestAttributes.fromJson(
  1. Object? j
)

Implementation

factory GuestAttributes.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GuestAttributes(
    kind: switch (json['kind']) {
      null => null,
      Object $1 => decodeString($1),
    },
    queryPath: switch (json['queryPath']) {
      null => null,
      Object $1 => decodeString($1),
    },
    queryValue: switch (json['queryValue']) {
      null => null,
      Object $1 => GuestAttributesValue.fromJson($1),
    },
    selfLink: switch (json['selfLink']) {
      null => null,
      Object $1 => decodeString($1),
    },
    variableKey: switch (json['variableKey']) {
      null => null,
      Object $1 => decodeString($1),
    },
    variableValue: switch (json['variableValue']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}