MapValue.fromJson constructor

MapValue.fromJson(
  1. Map _json
)

Implementation

MapValue.fromJson(core.Map _json)
    : this(
        fields: _json.containsKey('fields')
            ? (_json['fields'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  Value.fromJson(item as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );