Series.fromJson constructor
Creates a Series instance from a json-serializable Series representation
A usage example:
import 'package:ml_dataframe/ml_dataframe';
void main() {
final json = {
'N': 'awesome_series', // a series' name
'D': [1, 5, 1, 2, 3, 1, 4], // series' data
'ISD': true, // whether a series id discrete or not
};
final series = Series.fromJson(json);
print(series);
// awesome_series: [1, 5, 1, 2, 3, 1, 4]
}
One can get the JSON serializable representation by calling toJson method
Implementation
factory Series.fromJson(Map<String, dynamic> json) = SeriesImpl.fromJson;