UIProgressBar.fromJson constructor

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

Implementation

factory UIProgressBar.fromJson(Map<String, dynamic> json) => UIProgressBar(
    elementId: (json['ElementId'] as num?)?.toInt() ?? 0,
    labels: (json['Labels'] as List<dynamic>?)?.map((e) => (e as String?) ?? '').toList() ?? const [],
    styleId: (json['StyleId'] as String?) ?? '',
    percentage: (json['Percentage'] as num?)?.toDouble() ?? 0.0,
);