EventSourceConfiguration.fromJson constructor

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

Implementation

factory EventSourceConfiguration.fromJson(Map<String, dynamic> json) {
  return EventSourceConfiguration(
    batchSize: json['BatchSize'] as int?,
    eventSource: json['EventSource'] as String?,
    functionName: json['FunctionName'] as String?,
    isActive: json['IsActive'] as bool?,
    lastModified: timeStampFromJson(json['LastModified']),
    parameters: (json['Parameters'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    role: json['Role'] as String?,
    status: json['Status'] as String?,
    uuid: json['UUID'] as String?,
  );
}