TimeChangedEvent.fromJson constructor

TimeChangedEvent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TimeChangedEvent.fromJson(Map<String, dynamic> json) {
  /// The key `currentTime` is only available in iOS.
  if (json.containsKey('currentTime')) {
    /// map `currentTime` to `time`
    json['time'] = json['currentTime'];
  }
  return _$TimeChangedEventFromJson(json);
}