CaptionParams.fromJson constructor

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

Implementation

CaptionParams.fromJson(Map<String, dynamic> json) {
  text = json['text'];
  alignment = TextAlignment.fromJson(json['alignment']);
  color = json['color'];
  visible = json['visible'];
  font = FontParams.fromJson(json['font']);
  padding = Padding.fromJson(json['padding']);
  noWrap = json['noWrap'];
}