Skip to content

Commit

Permalink
Documentation, changelog, pubspec
Browse files Browse the repository at this point in the history
  • Loading branch information
gyrdym committed May 10, 2020
1 parent b2c55b3 commit bd99b4d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/src/data_frame/data_frame_impl.dart
Expand Up @@ -47,18 +47,18 @@ class DataFrameImpl with SerializableMixin implements DataFrame {
Map<String, dynamic> toJson() => _$DataFrameImplToJson(this);

@override
@JsonKey(name: headerJsonKey)
@JsonKey(name: dataFrameHeaderJsonKey)
final Iterable<String> header;

@override
@JsonKey(name: rowsJsonKey)
@JsonKey(name: dataFrameRowsJsonKey)
final Iterable<Iterable> rows;

@override
final Iterable<Series> series;

@JsonKey(
name: numericalConverterJsonKey,
name: dataFrameNumericalConverterJsonKey,
toJson: numericalConverterToJson,
fromJson: fromNumericalConverterJson,
)
Expand Down
7 changes: 3 additions & 4 deletions lib/src/data_frame/data_frame_json_keys.dart
@@ -1,4 +1,3 @@
const headerJsonKey = 'H';
const rowsJsonKey = 'R';
const cachedMatricesJsonKey = 'C';
const numericalConverterJsonKey = 'N';
const dataFrameHeaderJsonKey = 'H';
const dataFrameRowsJsonKey = 'R';
const dataFrameNumericalConverterJsonKey = 'N';
6 changes: 3 additions & 3 deletions test/data_frame/data_frame_test.dart
Expand Up @@ -288,13 +288,13 @@ void main() {

group('serialization', () {
final json = {
headerJsonKey: ['first', 'second', 'third'],
rowsJsonKey: [
dataFrameHeaderJsonKey: ['first', 'second', 'third'],
dataFrameRowsJsonKey: [
['1', 2, 3],
[10, 12, 323],
[-10, 202, 1000],
],
numericalConverterJsonKey: {
dataFrameNumericalConverterJsonKey: {
strictTypeCheckJsonKey: false,
},
};
Expand Down

0 comments on commit bd99b4d

Please sign in to comment.