SubDescription.fromJson constructor

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

Implementation

factory SubDescription.fromJson(Map<String, dynamic> json) {
  return SubDescription(
    text: json['text'] as String?,
    type: json['type'] as String?,
    isBold: json['isBold'] as bool?,
    isSpaceRequired: json['isSpaceRequired'] as bool?,
  );
}