serialize<S> method
S
serialize<S>()
Implementation
S serialize<S>() {
if (this is Iterable<int>) {
return this as S;
} else if (this is Iterable<double>) {
return this as S;
} else if (this is Iterable<num>) {
return this as S;
} else if (this is Iterable<bool>) {
return this as S;
} else if (this is Iterable<String>) {
return this as S;
} else {
return map((e) => SerializableData.serializeGeneric(e)).toList() as S;
}
}