$VideoOffset.fromJson constructor Null safety

$VideoOffset.fromJson(
  1. Map _json
)

Implementation

$VideoOffset.fromJson(core.Map _json)
    : this(
        offsetPercentage: _json.containsKey('offsetPercentage')
            ? _json['offsetPercentage'] as core.int
            : null,
        offsetSeconds: _json.containsKey('offsetSeconds')
            ? _json['offsetSeconds'] as core.int
            : null,
      );