BatchGetVariableResult.fromJson constructor

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

Implementation

factory BatchGetVariableResult.fromJson(Map<String, dynamic> json) {
  return BatchGetVariableResult(
    errors: (json['errors'] as List?)
        ?.whereNotNull()
        .map((e) => BatchGetVariableError.fromJson(e as Map<String, dynamic>))
        .toList(),
    variables: (json['variables'] as List?)
        ?.whereNotNull()
        .map((e) => Variable.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}