BatchGetDevEndpointsResponse.fromJson constructor

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

Implementation

factory BatchGetDevEndpointsResponse.fromJson(Map<String, dynamic> json) {
  return BatchGetDevEndpointsResponse(
    devEndpoints: (json['DevEndpoints'] as List?)
        ?.whereNotNull()
        .map((e) => DevEndpoint.fromJson(e as Map<String, dynamic>))
        .toList(),
    devEndpointsNotFound: (json['DevEndpointsNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}