from<K extends Object, V extends Object> static method

DataObject from<K extends Object, V extends Object>(
  1. Map<K, V> source,
  2. MapEntry<String, Object> convert(
    1. K,
    2. V
    )
)

Creates a data object with items mapped from source of K - V pairs.

Implementation

static DataObject from<K extends Object, V extends Object>(
  Map<K, V> source,
  MapEntry<String, Object> Function(K, V) convert,
) =>
    DataObjectView._protected(source.map<String, Object>(convert));