// NewGetCondition returns a NewMethod that writes a GetCondition method for
// the supplied Object to the supplied file.
NewGetCondition returns a NewMethod that writes a GetCondition method for
the supplied Object to the supplied file.
// NewGetCondition returns a NewMethod that writes a GetCondition method for // the supplied Object to the supplied file .
func NewGetCondition(receiver, runtime string) New {
	return func(f *jen.File, o types.Object) {
		f.Commentf("GetCondition of this %s.", o.Name())
		f.Func().Params(jen.Id(receiver).Op("*").Id(o.Name())).Id("GetCondition").Params(jen.Id("c").Op("...").Qual(runtime, "Condition")).Block(
			jen.Id(receiver).Dot(fields.NameStatus).Dot("GetCondition").Call(jen.Id("c").Op("...")),
		)
	}
}
func NewGetCondition ( receiver , runtime string ) New { return func ( f * jen . File , o types . Object ) { f . Commentf ( " " , o . Name ( ) ) f . Func ( ) . Params ( jen . Id ( receiver ) . Op ( " " ) . Id ( o . Name ( ) ) ) . Id ( " " ) . Params ( jen . Id ( " " ) . Op ( " " ) . Qual ( runtime , " " ) ) . Block ( jen . Id ( receiver ) . Dot ( fields . NameStatus ) . Dot ( " " ) . Call ( jen . Id ( " " ) . Op ( " " ) ) , ) } }
NewGetCondition returns a NewMethod that writes a GetCondition method for
the supplied Object to the supplied file.
NewGetCondition returns a NewMethod that writes a GetCondition method for the supplied Object to the supplied file .