LyricSrcItemEntity_c.fromJson constructor

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

Implementation

factory LyricSrcItemEntity_c.fromJson(Map<String, dynamic> json) {
  final json_time = json["time"];
  double time = 0;
  if (json_time is double) {
    time = json_time;
  } else if (json_time is int) {
    time = json_time.toDouble();
  }
  return LyricSrcItemEntity_c(
    time: time,
    content: json["content"] ?? "",
  );
}