DescribeContextResponse.fromJson constructor

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

Implementation

factory DescribeContextResponse.fromJson(Map<String, dynamic> json) {
  return DescribeContextResponse(
    contextArn: json['ContextArn'] as String?,
    contextName: json['ContextName'] as String?,
    contextType: json['ContextType'] as String?,
    createdBy: json['CreatedBy'] != null
        ? UserContext.fromJson(json['CreatedBy'] as Map<String, dynamic>)
        : null,
    creationTime: timeStampFromJson(json['CreationTime']),
    description: json['Description'] as String?,
    lastModifiedBy: json['LastModifiedBy'] != null
        ? UserContext.fromJson(json['LastModifiedBy'] as Map<String, dynamic>)
        : null,
    lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
    properties: (json['Properties'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    source: json['Source'] != null
        ? ContextSource.fromJson(json['Source'] as Map<String, dynamic>)
        : null,
  );
}