Overlay.fromJson constructor

Overlay.fromJson(
  1. Map json_
)

Implementation

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