GoogleCastBrakeStatus.fromMap constructor
GoogleCastBrakeStatus.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCastBrakeStatus.fromMap(Map<String, dynamic> map) {
return GoogleCastBrakeStatus(
breakClipId: map['breakClipId'],
breakId: map['breakId'],
currentBreakClipTime: map['currentBreakClipTime'] != null
? Duration(seconds: map['currentBreakClipTime'].toInt())
: null,
currentBreakTime: map['currentBreakTime'] != null
? Duration(seconds: map['currentBreakTime'].toInt())
: null,
whenSkippable: map['whenSkippable'] != null
? Duration(seconds: map['whenSkippable'].toInt())
: null,
);
}