Caption.fromMap constructor

Caption.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory Caption.fromMap(Map<String, dynamic> json) => Caption(
      text: json["text"],
      fontStyle: int.parse("${json["fontStyle"]}"),
      fontColor: json["fontColor"],
    );