mirror of
https://github.com/flutter/samples.git
synced 2025-11-14 11:28:36 +00:00
32 lines
992 B
Dart
32 lines
992 B
Dart
// Copyright 2020, the Flutter project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'api.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Category _$CategoryFromJson(Map<String, dynamic> json) {
|
|
return Category(json['name'] as String);
|
|
}
|
|
|
|
Map<String, dynamic> _$CategoryToJson(Category instance) => <String, dynamic>{
|
|
'name': instance.name,
|
|
};
|
|
|
|
Entry _$EntryFromJson(Map<String, dynamic> json) {
|
|
return Entry(
|
|
json['value'] as int,
|
|
Entry._timestampToDateTime(json['time'] as Timestamp),
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$EntryToJson(Entry instance) => <String, dynamic>{
|
|
'value': instance.value,
|
|
'time': Entry._dateTimeToTimestamp(instance.time),
|
|
};
|