// Copyright 2019 The Chromium Authors. 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:flutter/foundation.dart';import'package:flutter/material.dart';import'package:flutter/widgets.dart';import'package:flutter_test/flutter_test.dart';voidmain(){test('IconDataDiagnosticsProperty includes valueProperties in JSON',(){IconDataPropertyproperty=IconDataProperty('foo',constIconData(101010));finalMap<String,Object>valueProperties=property.toJsonMap(constDiagnosticsSerializationDelegate())['valueProperties'];expect(valueProperties['codePoint'],101010);property=IconDataProperty('foo',null);finalMap<String,Object>json=property.toJsonMap(constDiagnosticsSerializationDelegate());expect(json.containsKey('valueProperties'),isFalse);});}