UpdateExclusionRequest.fromJson constructor

UpdateExclusionRequest.fromJson(
  1. Object? j
)

Implementation

factory UpdateExclusionRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return UpdateExclusionRequest(
    name: switch (json['name']) {
      null => '',
      Object $1 => decodeString($1),
    },
    exclusion: switch (json['exclusion']) {
      null => null,
      Object $1 => LogExclusion.fromJson($1),
    },
    updateMask: switch (json['updateMask']) {
      null => null,
      Object $1 => FieldMask.fromJson($1),
    },
  );
}