Queue.fromJson constructor

Queue.fromJson(
  1. Object? j
)

Implementation

factory Queue.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Queue(
    name: switch (json['name']) {
      null => '',
      Object $1 => decodeString($1),
    },
    appEngineRoutingOverride: switch (json['appEngineRoutingOverride']) {
      null => null,
      Object $1 => AppEngineRouting.fromJson($1),
    },
    rateLimits: switch (json['rateLimits']) {
      null => null,
      Object $1 => RateLimits.fromJson($1),
    },
    retryConfig: switch (json['retryConfig']) {
      null => null,
      Object $1 => RetryConfig.fromJson($1),
    },
    state: switch (json['state']) {
      null => Queue_State.$default,
      Object $1 => Queue_State.fromJson($1),
    },
    purgeTime: switch (json['purgeTime']) {
      null => null,
      Object $1 => Timestamp.fromJson($1),
    },
    stackdriverLoggingConfig: switch (json['stackdriverLoggingConfig']) {
      null => null,
      Object $1 => StackdriverLoggingConfig.fromJson($1),
    },
  );
}