BucketAutoclass.fromJson constructor

BucketAutoclass.fromJson(
  1. Map _json
)

Implementation

BucketAutoclass.fromJson(core.Map _json)
    : this(
        enabled: _json.containsKey('enabled')
            ? _json['enabled'] as core.bool
            : null,
        toggleTime: _json.containsKey('toggleTime')
            ? core.DateTime.parse(_json['toggleTime'] as core.String)
            : null,
      );