Entity.fromJson constructor

Entity.fromJson(
  1. Map json_
)

Implementation

Entity.fromJson(core.Map json_)
    : this(
        key: json_.containsKey('key')
            ? Key.fromJson(
                json_['key'] as core.Map<core.String, core.dynamic>)
            : null,
        properties: json_.containsKey('properties')
            ? (json_['properties'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  Value.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );