FunctionDeclarationData.fromJson constructor

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

Implementation

factory FunctionDeclarationData.fromJson(Map<String, dynamic> json) =>
    FunctionDeclarationData(
      count: json['count'],
      tools:
          (json['tools'] as List<dynamic>?)
              ?.map((x) => Tool.fromJson(x))
              .toList() ??
          [],
      retrievedAt: json['retrievedAt'] != null
          ? DateTime.parse(json['retrievedAt'])
          : null,
    );