CompletionsResponseBody.fromMap constructor

CompletionsResponseBody.fromMap(
  1. Map<String, Object?> obj
)

Implementation

CompletionsResponseBody.fromMap(Map<String, Object?> obj)
    : targets = (obj['targets'] as List)
          .map(
              (item) => CompletionItem.fromJson(item as Map<String, Object?>))
          .toList();