RTPropertyString.fromJson constructor

RTPropertyString.fromJson(
  1. Map<String, String> json, {
  2. String? delimiter,
  3. String? splitDelimiter,
})

Implementation

factory RTPropertyString.fromJson(
  Map<String, String> json, {
  String? delimiter,
  String? splitDelimiter,
}) {
  return RTPropertyString(
    items: json.entries
        .map((e) => RTPropertyStringItem(key: e.key, value: e.value))
        .toList(),
    delimiter: delimiter,
    splitDelimiter: splitDelimiter,
  );
}