toOption method
Option<(A, B, C, D, E, F, G, H, I, J)>
toOption(
)
Implementation
Option<(A, B, C, D, E, F, G, H, I, J)> toOption() {
final a = $1().v;
if (a == null) {
return None;
}
final b = $2().v;
if (b == null) {
return None;
}
final c = $3().v;
if (c == null) {
return None;
}
final d = $4().v;
if (d == null) {
return None;
}
final e = $5().v;
if (e == null) {
return None;
}
final f = $6().v;
if (f == null) {
return None;
}
final g = $7().v;
if (g == null) {
return None;
}
final h = $8().v;
if (h == null) {
return None;
}
final i = $9().v;
if (i == null) {
return None;
}
final j = $10().v;
if (j == null) {
return None;
}
return Some((a, b, c, d, e, f, g, h, i, j));
}