AnimationFade.fromJson constructor

AnimationFade.fromJson(
  1. Map _json
)

Implementation

AnimationFade.fromJson(core.Map _json)
    : this(
        endTimeOffset: _json.containsKey('endTimeOffset')
            ? _json['endTimeOffset'] as core.String
            : null,
        fadeType: _json.containsKey('fadeType')
            ? _json['fadeType'] as core.String
            : null,
        startTimeOffset: _json.containsKey('startTimeOffset')
            ? _json['startTimeOffset'] as core.String
            : null,
        xy: _json.containsKey('xy')
            ? NormalizedCoordinate.fromJson(
                _json['xy'] as core.Map<core.String, core.dynamic>)
            : null,
      );