MethodSettings_LongRunning.fromJson constructor
MethodSettings_LongRunning.fromJson(
- Object? j
Implementation
factory MethodSettings_LongRunning.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return MethodSettings_LongRunning(
initialPollDelay: switch (json['initialPollDelay']) {
null => null,
Object $1 => Duration.fromJson($1),
},
pollDelayMultiplier: switch (json['pollDelayMultiplier']) {
null => 0,
Object $1 => decodeDouble($1),
},
maxPollDelay: switch (json['maxPollDelay']) {
null => null,
Object $1 => Duration.fromJson($1),
},
totalPollTimeout: switch (json['totalPollTimeout']) {
null => null,
Object $1 => Duration.fromJson($1),
},
);
}