NotificationEndpointGrpcSettings.fromJson constructor

NotificationEndpointGrpcSettings.fromJson(
  1. Object? j
)

Implementation

factory NotificationEndpointGrpcSettings.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return NotificationEndpointGrpcSettings(
    authority: switch (json['authority']) {
      null => null,
      Object $1 => decodeString($1),
    },
    endpoint: switch (json['endpoint']) {
      null => null,
      Object $1 => decodeString($1),
    },
    payloadName: switch (json['payloadName']) {
      null => null,
      Object $1 => decodeString($1),
    },
    resendInterval: switch (json['resendInterval']) {
      null => null,
      Object $1 => Duration.fromJson($1),
    },
    retryDurationSec: switch (json['retryDurationSec']) {
      null => null,
      Object $1 => decodeInt($1),
    },
  );
}