CaptionParams.fromJson constructor

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

Creates a CaptionParams instance from a JSON representation.

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'];
}