IndexIndexStatisticTextDocumentStatistic.fromMap constructor

IndexIndexStatisticTextDocumentStatistic.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory IndexIndexStatisticTextDocumentStatistic.fromMap(Map<String, dynamic> map) {
  return IndexIndexStatisticTextDocumentStatistic(
    indexedTextBytes: (() { final guardedValue = map['indexedTextBytes']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
    indexedTextDocumentsCount: (() { final guardedValue = map['indexedTextDocumentsCount']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
  );
}