JobMessages.fromJson constructor

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

Implementation

factory JobMessages.fromJson(Map<String, dynamic> json) {
  return JobMessages(
    info: (json['info'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    warning: (json['warning'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}