StructuredOutputFormat.fromJson constructor

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

Implementation

factory StructuredOutputFormat.fromJson(Map<String, dynamic> json) =>
    StructuredOutputFormat(
      name: json['name'] as String,
      description: json['description'] as String?,
      schema: json['schema'] as Map<String, dynamic>?,
      strict: json['strict'] as bool?,
    );