trphoenix
2018-11-12 29fbfc5dd1d55d189f23eb6d32f000252f92985f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2018, the Dart 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.
 
import 'package:json_annotation/json_annotation.dart';
 
part 'simple_object.g.dart';
 
@JsonSerializable(anyMap: true, generateToJsonFunction: false)
class SimpleObject extends Object with _$SimpleObjectSerializerMixin {
  @override
  final int value;
 
  SimpleObject(this.value);
 
  factory SimpleObject.fromJson(Map json) => _$SimpleObjectFromJson(json);
}