Overlay.fromJson constructor

Overlay.fromJson(
  1. Map _json
)

Implementation

Overlay.fromJson(core.Map _json)
    : this(
        animations: _json.containsKey('animations')
            ? (_json['animations'] as core.List)
                .map((value) => Animation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        image: _json.containsKey('image')
            ? Image.fromJson(
                _json['image'] as core.Map<core.String, core.dynamic>)
            : null,
      );