FunctionConfiguration.fromJson constructor
FunctionConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FunctionConfiguration.fromJson(Map<String, dynamic> json) {
return FunctionConfiguration(
codeSize: json['CodeSize'] as int?,
configurationId: json['ConfigurationId'] as String?,
description: json['Description'] as String?,
functionARN: json['FunctionARN'] as String?,
functionName: json['FunctionName'] as String?,
handler: json['Handler'] as String?,
lastModified: timeStampFromJson(json['LastModified']),
memorySize: json['MemorySize'] as int?,
mode: (json['Mode'] as String?)?.toMode(),
role: json['Role'] as String?,
runtime: (json['Runtime'] as String?)?.toRuntime(),
timeout: json['Timeout'] as int?,
);
}