RequestValidators.fromJson constructor

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

Implementation

factory RequestValidators.fromJson(Map<String, dynamic> json) {
  return RequestValidators(
    items: (json['item'] as List?)
        ?.whereNotNull()
        .map((e) => RequestValidator.fromJson(e as Map<String, dynamic>))
        .toList(),
    position: json['position'] as String?,
  );
}