UpdateEndpointRequest.fromJson constructor

UpdateEndpointRequest.fromJson(
  1. Object? j
)

Implementation

factory UpdateEndpointRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return UpdateEndpointRequest(
    endpoint: switch (json['endpoint']) {
      null => null,
      Object $1 => Endpoint.fromJson($1),
    },
    updateMask: switch (json['updateMask']) {
      null => null,
      Object $1 => protobuf.FieldMask.fromJson($1),
    },
  );
}