Field constructor
Field({})
Implementation
factory Field({
Field_Kind? kind,
Field_Cardinality? cardinality,
$core.int? number,
$core.String? name,
$core.String? typeUrl,
$core.int? oneofIndex,
$core.bool? packed,
$core.Iterable<Option>? options,
$core.String? jsonName,
$core.String? defaultValue,
}) {
final $result = create();
if (kind != null) {
$result.kind = kind;
}
if (cardinality != null) {
$result.cardinality = cardinality;
}
if (number != null) {
$result.number = number;
}
if (name != null) {
$result.name = name;
}
if (typeUrl != null) {
$result.typeUrl = typeUrl;
}
if (oneofIndex != null) {
$result.oneofIndex = oneofIndex;
}
if (packed != null) {
$result.packed = packed;
}
if (options != null) {
$result.options.addAll(options);
}
if (jsonName != null) {
$result.jsonName = jsonName;
}
if (defaultValue != null) {
$result.defaultValue = defaultValue;
}
return $result;
}