// 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 json) { return Category(json['name'] as String); } Map _$CategoryToJson(Category instance) => { 'name': instance.name, }; Entry _$EntryFromJson(Map json) { return Entry( json['value'] as int, Entry._timestampToDateTime(json['time'] as Timestamp), ); } Map _$EntryToJson(Entry instance) => { 'value': instance.value, 'time': Entry._dateTimeToTimestamp(instance.time), };