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