VolumeError.fromJson constructor
Creates a VolumeError from JSON data.
Implementation
factory VolumeError.fromJson(Map<String, dynamic> json) {
final tempMessageJson = json['message'];
final tempTimeJson = json['time'];
final String? tempMessage = tempMessageJson;
final DateTime? tempTime =
tempTimeJson != null ? DateTime.tryParse(tempTimeJson) : null;
return VolumeError(
message: tempMessage,
time: tempTime,
);
}