GetFunctionResponse.fromJson constructor

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

Implementation

factory GetFunctionResponse.fromJson(Map<String, dynamic> json) {
  return GetFunctionResponse(
    code: json['Code'] != null
        ? FunctionCodeLocation.fromJson(json['Code'] as Map<String, dynamic>)
        : null,
    concurrency: json['Concurrency'] != null
        ? Concurrency.fromJson(json['Concurrency'] as Map<String, dynamic>)
        : null,
    configuration: json['Configuration'] != null
        ? FunctionConfiguration.fromJson(
            json['Configuration'] as Map<String, dynamic>)
        : null,
    tags: (json['Tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}